package com.weitu.environmental.solidWaste.service.impl;

import com.weitu.environmental.solidWaste.entity.UnitDispose;
import com.weitu.environmental.solidWaste.mapper.UnitDisposeMapper;
import com.weitu.environmental.solidWaste.service.UnitDisposeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @author zhangqingxi 2017-04-17
 */
@Service
public class UnitDisposeServiceImpl implements UnitDisposeService {
    private final UnitDisposeMapper unitDisposeMapper;

    @Autowired
    public UnitDisposeServiceImpl(UnitDisposeMapper unitDisposeMapper) {
        this.unitDisposeMapper = unitDisposeMapper;
    }

    @Override
    public List<UnitDispose> findByParam(Map paramMap) {
        return unitDisposeMapper.findByParam(paramMap);
    }

    @Override
    public Integer findByParamCount(Map paramMap) {
        return unitDisposeMapper.findByParamCount(paramMap);
    }

    @Override
    public List<UnitDispose> findAllBySwaId(String swaId) {
        return unitDisposeMapper.findAllBySwaId(swaId);
    }

    @Override
    public List<UnitDispose> findAllByParam(Map paramMap) {
        return unitDisposeMapper.findByParam(paramMap);
    }

}
